package com.hp.tiger.chapter18;

/**
 * @author XavierDong
 **/
public class ActiveObjectClient {

    /**
     * main
     * <p>
     * A a-> B b
     *
     * @param args
     */
    public static void main(String[] args) {
//        System.gc();

        ActiveObject activeObject = ActiveObjectFactory.createActiveObject();

        new MakeClientThread("Alice", activeObject).start();
        new MakeClientThread("Bobby", activeObject).start();

        new DisplayClientThread("Chris", activeObject).start();
    }
}
